export interface loginFormData {
  username: string
  password: string
}

interface dateType {
  token: string
}

export interface loginResponseData {
  code: number
  data: dateType
}

interface userInfo {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}

interface user {
  checkUser: userInfo
}

export type userInfoReponseData = {
  code: number
  data: user
}
